#include "formatview.h"
#include <QMessageBox>

FormatView::FormatView(QWidget *parent) : QTreeView(parent) {
    setHeaderHidden(true);
    setFont(QFont("Consolas", 11));
}

void FormatView::mouseDoubleClickEvent(QMouseEvent *event) {
    QModelIndex index = indexAt(event->pos());
    if (index.isValid())
        emit nodeDoubleClicked(index);
    QTreeView::mouseDoubleClickEvent(event);
}
